package com.xrath.rtm;

import java.io.Serializable;
import java.util.Date;

/**
 * Note object represents a note of the task.
 *
 * @author Jang-Ho Hwang, rath@xrath.com
 * @version 1.0, since 2008/06/01
 */
public class Note implements Serializable
{
	private String id;
	private String title;
	private String text;

	private Date created;
	private Date modified;

	/**
	 * Create a note object.
	 */
	public Note()
	{

	}

	/** 
	 * Create a note object with given title and text.
	 */
	public Note( String title, String text )
	{
		setTitle( title );
		setText( text );
	}

	/**
	 * Set the ID of this note.
	 */
	public void setId( String id )
	{
		this.id = id;
	}
	
	/**
	 * Return the ID of this note.
	 */
	public String getId()
	{
		return this.id;
	}

	/**
	 * Set the title of this note.
	 */
	public void setTitle( String title )
	{
		this.title = title;
	}

	/** 
	 * Return the title of this note.
	 */
	public String getTitle()
	{
		return this.title;
	}

	/**
	 * Set the text of this note.
	 */
	public void setText( String text )
	{
		this.text = text;
	}

	/**
	 * Return the text of this note.
	 */
	public String getText()
	{
		return this.text;
	}

	/**
	 * Set the created date of this note.
	 */
	public void setCreated( Date created )
	{
		this.created = created;
	}

	/**
	 * Return the created date of this note.
	 */
	public Date getCreated()
	{
		return this.created;
	}

	/**
	 * Set the modified date of this note.
	 */
	public void setModified( Date modified )
	{
		this.modified = modified;
	}

	/**
	 * Return the modified date of this note.
	 */
	public Date getModified()
	{
		return this.modified;
	}
}
